package controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MyController8 {
	@RequestMapping("/list")
	public String execute(HttpServletRequest request, HttpServletResponse response) {
		
		List<String>  ls=new ArrayList<String>();
		ls.add("st1");
		ls.add("st2");
		ls.add("st3");
	 request.setAttribute("list", ls);
		return "list";
	}
}
